advantage of function in python